// import { getDepartments } from '@/api/department'
export default {
  state: {
    currentDepartmentId: '',
    childDepartments: '',
    userName: '',
    userId: ''
  },
  mutations: {
    setUserId (state, id) {
      state.userId = id
    },
    setUserName (state, name) {
      state.userName = name
    },
    setCurrentDepartmentId (state, currentDepartmentId) {
      state.currentDepartmentId = currentDepartmentId
    },
    setChildDepartments (state, childDepartments) {
      state.childDepartments = childDepartments
    }
  },
  getters: {
    currentDepartmentId: state => state.currentDepartmentId
  },
  actions: {
  }
}
